package com.centit.springbootdemo04.DI;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author zhao_jx
 * @date 2020/7/5 17:39
 */
public class TestDiMain {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(TestDiConfiguration.class);
        TestA testA= applicationContext.getBean(TestA.class);
        System.out.println(testA);
    }
}
